package com.example.jdk16;

public class InstanceTest {
    public static void main(String[] args) {
        String str = new String("123");
        if (str instanceof String) {
            System.out.println("instance");
        } else {
            System.out.println("not instance");
        }
    }
}
